package com.cmccgz.udacs_landlord_webapp.main.accreditmanager;

import android.os.Handler;

import com.cmccgz.baselibrary.base.BasePresenter;
import com.cmccgz.baselibrary.base.BaseView;
import com.cmccgz.udacs_landlord_webapp.bean.IdBean;

/**
 * 开卡授权约束类
 */
public interface AddPersonContract {


    public interface Presenter extends BasePresenter {

        void selectNation();


        void confirmPersonInfo(String mobile,String houseId, String usermobile, String name,
                               String sex, String idCard, String nation,String address, String birth, String houseNo, String verify);

        void scanId(String imgUrl);

        void getCode(String mobile,Handler handler);
    }

    interface View extends BaseView<AddPersonContract.Presenter> {

        void showEmptyName();

        void showInvalidName();

        void showEmptyMobile();

        void showInvalidMobile();

        void showEmptyIdCard();

        void showInvalidIdNumber();

        void showEmptyNation();

        void showEmptyBirthDate();

        void showAllNation(String[] nations);

        void showLoadingDialog();

        void hideLoadingDialog();

        void showEmptyVerify();

        void showEmptyHouseNo();

        void compeleSuccess();
        void compeleError(String msg);

        void scanIdSuccess(IdBean idBean);
        void scanIdError(String msg);

        void waitCode(int second);
        void getCodeError(String msg);
        void getCodeSuccess();
        void resetCode();
    }


}
